import request from '@/utils/request'

// 查询DegreeCommit列表
export function listCommit(query) {
  return request({
    url: '/DegreeCommit/commit/list',
    method: 'get',
    params: query
  })
}

// 查询DegreeCommit详细
export function getCommit(id) {
  return request({
    url: '/DegreeCommit/commit/' + id,
    method: 'get'
  })
}

// 新增DegreeCommit
export function addCommit(data) {
  return request({
    url: '/DegreeCommit/commit',
    method: 'post',
    data: data
  })
}

// 修改DegreeCommit
export function updateCommit(data) {
  return request({
    url: '/DegreeCommit/commit',
    method: 'put',
    data: data
  })
}

// 删除DegreeCommit
export function delCommit(id) {
  return request({
    url: '/DegreeCommit/commit/' + id,
    method: 'delete'
  })
}

export function getDegreeCommitByUid() {
  return request({
    url: '/DegreeCommit/commit/byUId',
    method: 'get'
  })

}
